﻿using Microsoft.Extensions.Hosting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp.Demos.SimplePipeline
{
    /// <summary>
    /// WebHostBuilder 提供了更加优雅和便利的服务器与中间件的注册方式  
    /// 
    /// 其实就是封装了两个 Builder（HostBuilder、ApplicationBuilder）
    /// </summary>
    public class WebHostBuilderByCustom
    {
        public WebHostBuilderByCustom(IHostBuilder hostBuilder, IApplicationBuilderByCustom applicationBuilder)
        {
            HostBuilder = hostBuilder;
            ApplicationBuilder = applicationBuilder;
        }

        public IHostBuilder HostBuilder { get; set; }

        public IApplicationBuilderByCustom ApplicationBuilder { get; set; }
    }
}
